/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package east2west.service;

import east2west.dao.CustomerDAO;
import east2west.dto.CustomerDTO;

/**
 *
 * @author anhtuan
 */
public class CustomerService {

    CustomerDAO dao = new CustomerDAO();

    public int create(CustomerDTO dto) {
        return dao.create(dto);
    }

    public CustomerDTO findByEmail(String email) {
        return dao.findByEmail(email);
    }

    public CustomerDTO findById(int id) {
        return dao.findById(id);
    }
}
